// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import RestaurantDetails from '../views/RestaurantDetails.vue';
import UserProfile from '../views/UserProfile.vue';

const routes = [
    { path: '/', component: Home },
    { path: '/restaurant/:id', component: RestaurantDetails, props: true },
    { path: '/profile', component: UserProfile }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;